//
//  XJGoodsEvaluateCell.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/9.
//  Copyright © 2018年 Tzyang. All rights reserved.
//  商品评价cell

#import "XJGoodsEvaluateCell.h"


@interface XJGoodsEvaluateCell()
/**背景*/
@property (nonatomic, strong) UIView *bgView;

/**1.商品评价lb*/
@property (nonatomic, strong) UILabel *goodsEvaluaeLb;
/**2.好评率lb*/
@property (nonatomic, strong) UILabel *favorableRateLb;

/**3. icon + 姓名lb + 很不错lb + 时间lb  背景view*/
@property (nonatomic, copy) NSString *smallBgView;

@end

@implementation XJGoodsEvaluateCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - 一 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self setupView];
    }
    return self;
}

- (void)setupView {
    [self.contentView addSubview:self.bgView];
    
    [self.bgView addSubview:self.goodsEvaluaeLb];
    [self.bgView addSubview:self.favorableRateLb];
}


#pragma mark - 二 lazy
- (UIView *)bgView {
    if (!_bgView) {
        _bgView = [UIView new];
    }
    return _bgView;
}
- (UILabel *)goodsEvaluaeLb {
    if (!_goodsEvaluaeLb) {
        _goodsEvaluaeLb = [UILabel new];
    }
    return _goodsEvaluaeLb;
}
- (UILabel *)favorableRateLb {
    if (!_favorableRateLb) {
        _favorableRateLb = [UILabel new];
        _favorableRateLb.text = @"好评率";
    }
    return _favorableRateLb;
}



#pragma mark - 三 布局
- (void)layoutSubviews {
    [super layoutSubviews];
    
}

#pragma mark - 思路
/**
 第一种情况
 
 商品评价       暂无评价
 ----------------------
 
 
 
 第二种情况
 
 商品评价       好平率100.0% 查看全部(5)
 icon 张三
 很不错
 2018-06-04  17:05:11
 */





@end
